package com.nullpointer.playerinfo.common.exception;

public class PlayerInfoException extends Exception {
    private final ExceptionEnum exceptionEnum;

    public PlayerInfoException(ExceptionEnum exceptionEnum) {
        super(exceptionEnum.getMessage());
        this.exceptionEnum = exceptionEnum;
    }

    public String getCode() {
        return exceptionEnum.getCode();
    }

    public String getMessage() {
        return exceptionEnum.getMessage();
    }
}
